package com.lagou.edu.service.impl;

import com.lagou.edu.service.AuthCodeService;
import com.lagou.edu.service.CodeRpcService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class CodeRpcServiceImpl implements CodeRpcService {
    @Autowired
    private AuthCodeService authCodeService;

    @Override
    public int validate(String email, String code) {
        return authCodeService.validate(email, code);
    }
}
